<!--密钥详情-->
<template>
    <a-modal v-model="showAddTable" :width="740"
             title="日志审计信息"
             :maskClosable="false"
             :destroyOnClose="true">
        <div class="modalDetail" v-if="JSON.stringify(info) !== '{}'">
            <p><em>审计人员：</em><span>{{info.auditUserName}}</span><br /></p>
            <!--<p><em>审计签名值：</em><span>{{info.signData}}</span><br /></p>-->
            <p><em>审计时间：</em><span>{{info.createTime}}</span><br /></p>
        </div>
        <div slot="footer">
            <a-button type="default" @click="cancelApply">取消</a-button>
        </div>
    </a-modal>
</template>

<script>

    export default {
        name: 'auditLogInfo',
        data () {
            return {
                showAddTable: false,
                info: {}
            }
        },
        computed: {

        },
        methods: {

            /**
             * Function    : showModal
             * Description : 打开弹框
             * Input       : none
             * Return      : none
             */
            showModal (opt) {
                let _this = this
                _this.$get ("api/audit/getSysAuditLogInfoByLogId", {logId: opt.id}).then (res => {
                    if (res.code === 0) {
                        _this.showAddTable = true
                        this.info = res.data
                    } else {
                        _this.$message.error (res.message)
                    }
                })
            },
            /**
             * Function    : cancelApply
             * Description : 取消弹出框
             * Input       : name
             * Return      : none
             */
            cancelApply () {
                this.showAddTable = false
                let _this = this
                setTimeout (function () {
                    _this.info = {}
                }, 100)
            }
        },
        created () {}
    }
</script>
